(@bigstorage @biggetback @getnextpage @getPreviouspage @@sendmsg @upgradeitems @buy @sell @repair)
%100
+5
+6
+10
+11
+15
+19
+20
+21
+22
+23
+24
+26



;ALL IN ONE NPC


[@main]
#ACT
OPENBIGDIALOGBOX
#SAY
----------------------------------------------------<All In One NPC - Made by BloodDeemon/AUTOCOLOR=254,251,168,191,250,70,245,249,253> ----------------------------------------------------\ \
--Shop--\
<Repair/@repair> - <Buy Stuff/@buy> - <Sell Stuff/@sell>\
--Storage--\
<Large Storage/@bigstorage> - <Get Back Items/@biggetback>\ 
--Appearence--\
<Change Hair/@hair> - <Custom Rank Name/@customrank> - <Show Effect/@showeffect> - <Change Name Colour/@namec> - <Shiney Items/@testlight>\
--Items--\
Give Specify Item to <You/@@inputstring.item> or <Other Player/@otherplayeritem> - <Upgrade Items/@upgradei>\
--Teleport--\
<View Teleport List/@teleport>\
--Misc--\
<Send Global Message/@@sendmsg> - <Send Move Message/@movemsg> - <Map Magic/@mapmagic> - <Vibrate/@vibrate>\
--Other--\
<Assign Other Players Title/@@inputstring.player> - <Make Map Snow/@@inputstring.setweather> - <Show Effect on Other Player/@@InPutString.playereffect>\





[@buy]
#ACT
CLOSEBIGDIALOGBOX
#SAY
What do you want to buy?
 <Back/@main>

[@sell]
#ACT
CLOSEBIGDIALOGBOX
#SAY
What do you want to sell?
 <Back/@main>

[@repair]
#ACT
CLOSEBIGDIALOGBOX
#SAY
Give me the item you want to repair.\ \ \
 <Back/@main>

[~@repair]
Your item seems repaired fine.\ \
 <Back/@main>

[goods]
;Item        Amount        Time
PowerRing 200 1



[@upgradei]
<Item Upgrade System! Please follow the instructions below!/FCOLOR=254>\ \

1, <Damage Reduced by 1% - 100%/FCOLOR=253> Physical Harm Reduction!\
2, <Magic Damage Reduced by 1% - 100%/FCOLOR=155> Magic Damage Redcution!\
3, <Ignore Target Defence by 1% - 100%/FCOLOR=69> Ignores Opponents Defence!\
4, <All Damage Reflection by 1% - 100%/FCOLOR=135> Reflects Damage Taken!\
5, <Attack Damage by 1% - 100%/FCOLOR=485> Increase Attack Damage!\
6, <Physical Defence by 1% - 100%/FCOLOR=253> Increase Physical Defence!\
7, <Magic Defence by 1% - 100%/FCOLOR=155> Increase Magic Defence!\
8, <Physical Attack by 1% - 100%/FCOLOR=69> Increase Physical Attack!\
9, <Magical Attack by 1% - 100%/FCOLOR=135> Increase Magical Attack!\
10, <Soul Attack by 1% - 100%/FCOLOR=485> Increase Soul Attack!\
11, <Blind Change by 1% - 100%/FCOLOR=253> Stop Enemies Attacking!\
12, <Chaos Chance by 1% - 100%/FCOLOR=155> Stops Enemies Attacking You!\
13, <Blind Protection by 1% - 100%/FCOLOR=69>  Stops Enemies Blinding You!\
14, <Chaos Protection by 1% - 100%/FCOLOR=135>  Stops Enemies Chaos!\
15, <Walk Speed by 1% - 100%/FCOLOR=485>  Increase You Walking Speed!\
16, <Attack Speed by 1% - 100%/FCOLOR=253> Increase Your Attack Speed!\ \
<Modify Your Item/@upgradeitems>

[@CHANGEITEMS]
#SAY
<Item Upgrade System! Probabilty one in five!/FCOLOr=254>\ \
                    
<Physical Damage/FCOLOR=253> | <Upgrade/@startUpgrade1>\
<Magic Damage/FCOLOR=155> | <Upgrade/@startUpgrade2>\
<Ignore Defence/FCOLOR=69> | <Upgrade/@startUpgrade3>\
<Reflection Injury/FCOLOR=135> | <Upgrade/@startUpgrade4>\
<Attack Damage/FCOLOR=485> | <Upgrade/@startUpgrade5>\
<Physical Defence/FCOLOR=253> | <Upgrade/@startUpgrade6>\
<Magic Defence/FCOLOR=155> | <Upgrade/@startUpgrade7>\
<Physical Attack/FCOLOR=69> | <Upgrade/@startUpgrade8>\
<Magical Attack/FCOLOR=135> | <Upgrade/@startUpgrade9>\
<Soul Attack/FCOLOR=485> | <Upgrade/@startUpgrade10>\
<Blind Chance/FCOLOR=253> | <Upgrade/@startUpgrade11>\
<Chaos Chance/FCOLOR=155> | <Upgrade/@startUpgrade12>\
<Blind Protection/FCOLOR=69> | <Upgrade/@startUpgrade13>\
<Chaos Protection/FCOLOR=135> | <Upgrade/@startUpgrade14>\
<Walk Speed/FCOLOR=485> | <Upgrade/@startUpgrade15>\
<Attack Speed/FCOLOR=253> | <Upgrade/@startUpgrade16>\


[@startupgrade1]
#ACT
CHANGEITEMNEWADDVALUE 1 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade2]
#ACT
CHANGEITEMNEWADDVALUE 2 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade3]
#ACT
CHANGEITEMNEWADDVALUE 3 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade4]
#ACT
CHANGEITEMNEWADDVALUE 4 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade5]
#ACT
CHANGEITEMNEWADDVALUE 5 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade6]
#ACT
CHANGEITEMNEWADDVALUE 6 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade7]
#ACT
CHANGEITEMNEWADDVALUE 7 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade8]
#ACT
CHANGEITEMNEWADDVALUE 8 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade9]
#ACT
CHANGEITEMNEWADDVALUE 9 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade10]
#ACT
CHANGEITEMNEWADDVALUE 10 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade11]
#ACT
CHANGEITEMNEWADDVALUE 11 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade12]
#ACT
CHANGEITEMNEWADDVALUE 12 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade13]
#ACT
CHANGEITEMNEWADDVALUE 13 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade14]
#ACT
CHANGEITEMNEWADDVALUE 14 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade15]
#ACT
CHANGEITEMNEWADDVALUE 15 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK

[@startupgrade16]
#ACT
CHANGEITEMNEWADDVALUE 16 = 1
SENDMSG 7 "Item Upgrade was sucessful"
BREAK





[@teleport]
Bichon--\
<Oma Cave/@omacave> - <Oma Natural Cave/@omanat> - <Bichon Dead Pit/@bwmine>\ \
Mongchon--\
<Death Valley/@bugcave> - <Zuma Temple/@zumatemple> - <Angled Stone Tomb/@stonetomb> - <Connection Cave/@conncave>\ \ 
Tao Village--\
<Insect Cave/@insectcave> - <Wooma Temple/@woomatemple> - <Mineral Mine/@mineralmine> - <Red Valley/@spidercave>\ \
Castle Gi--\
<Black Dragon Dungeon/@bddungeon>\ \ 
Pranja--\
<Prajna Cave/@prajnacave> - <Prajna Stone Cave/@prajnastonecave> - <Prajna Temple/@prajnatemple>\ \ 
<Go Back/@main>\

[@omacave]
#IF
#ACT
Give TownTeleport
mapmove D001

[@omanat]
#IF
#ACT
Give TownTeleport
mapmove D011

[@bwmine]
#IF
#ACT
Give TownTeleport
mapmove D401

[@bugcave]
#IF
#ACT
Give TownTeleport
mapmove D601

[@zumatemple]
#IF
#ACT
Give TownTeleport
mapmove D501

[@stonetomb]
#IF
#ACT
Give TownTeleport
mapmove D711

[@conncave]
#IF
#ACT
Give TownTeleport
mapmove D701

[@insectcave]
#IF
#ACT
Give TownTeleport
mapmove D2041

[@woomatemple]
#IF
#ACT
Give TownTeleport
mapmove D022

[@mineralmine]
#IF
#ACT
Give TownTeleport
mapmove D2031

[@spidercave]
#IF
#ACT
Give TownTeleport
mapmove D10011

[@bddungeon]
#IF
#ACT
Give TownTeleport
mapmove D2001

[@prajnacave]
#IF
#ACT
Give TownTeleport
mapmove D2051

[@prajnastonecave]
#IF
#ACT
Give TownTeleport
mapmove D2061

[@prajnatemple]
#IF
#ACT
Give TownTeleport
mapmove D2071


[@InputString.item]
#ACT
give s0
goto @main

[@InputString.itemp]
#ACT
MOV HUMAN Name S1 S1 S1 S1
SAVEVAR HUMAN Name test.txt
#SAY
<$STR(S1)>

[@inputstring.testpp]
#ACT
MOV S1 S0
#SAY
<$STR(S0)>\
<$STR(S1)>

[@otherplayeritem]
#ACT
MOV S1 "Null"
MOV S2 "No Item"
#SAY
Give item to other player (Uses Variables)\ \
This lets you specify an character name and give them a item you also enter, It is a simple example\
of what is possible with the variables in these files! Cool stuff. Enjoy\ \
Player who recieves item: Null - <Change/@@inputstring.changeplayer>\
Item to Recieve: No Item - <Change/@@inputstring.changeitem>\\
<Send Item/@senditem> - Please make sure all data is entered above\ \
Error Messages displayed in chat bar!\ \ \ \
<Go Back/@main>\


[@otherplayeritem2]
#SAY
Give item to other player (Uses Variables)\ \
This lets you specify an character name and give them a item you also enter, It is a simple example\
of what is possible with the variables in these files! Cool stuff. Enjoy\ \
Player who recieves item: <$STR(S1)> - <Change/@@inputstring.changeplayer>\
Item to Recieve: <$STR(S2)> - <Change/@@inputstring.changeitem>\\
<Send Item/@senditem> - Please make sure all data is entered above\ \
Error Messages displayed in chat bar!\ \ \ \
<Go Back/@main>\





[@senditem]
;checks user name entered
#IF
CHECKCONTAINSTEXT S1 Null
#ACT
SENDMSG 0 "No Username Entered"
close
#ELSEACT
goto @senditem2


[@senditem2]
;checks user offline
#IF
S1.CHECKONLINE
#ACT
goto @senditem3
#ELSEACT
SENDMSG 0 "<$STR(S1)> is offline"
close

[@senditem3]
;check item entered
#IF
CHECKCONTAINSTEXT S2 No Item
#ACT
SENDMSG 0 "No Item Entered"
close
#ELSEACT
s1.give s2
close






[@inputstring.changeplayer]
#ACT
MOV S1 S0
goto @otherplayeritem2

[@inputstring.changeitem]
#ACT
MOV S2 S0
goto @otherplayeritem2


;<TEST/@@inputstring.testpp>




[@inputstring.setweather]
#ACT
SNOW 0 0
goto @main


[@InPutString.playereffect]
#IF
S0.CHECKONLINE
#ACT
S0.gmexecute showeffect 1 1
SENDMSG 0 "Effect Sent to user <$STR(S0)>"
close
#ELSEACT
SENDMSG 0 "<$STR(S0)> is offline"
close





[@inputstring.player]
#ACT
s0.setranklevelname "PWNED"
close


[@timer]
#ACT
SETOFFTIMER 0
SENDMSG 0 [@OnTimer0]10һ
goto @main

[@vibrate]
#ACT
VIBRATION
goto @main

[@showeffect]
<Effect 1/@effect1>\

[@effect1]
#ACT
gmexecute showeffect 1 0 1
goto @main


[@mapmagic]
#ACT
;mapmove 3 318 328
;move 3 318 328
;effect list
;1=RME Spike, 2=Mirroring Image, 3=clone image, 4=thunder bolt

;           map       x   y    time  effect  duration         damage?             speed
ADDMAPMAGICEVENT   0        330 268    1     6      100      20                            100
close


[@testlight]
This allows you to change the shine effect on your equiped items.\
---------------------------------Glow 1---------------------------------\
<Brace Right/@5S> - <Brace Left/@6S> - <Ring Right/@7S> - <Ring Left/@8S> - <Necklace/@3S>\ \

---------------------------------Glow 2---------------------------------\
<Brace Right/@b5S> - <Brace Left/@b6S> - <Ring Right/@b7S> - <Ring Left/@b8S> - <Necklace/@b3S>\ \

---------------------------------Glow 3---------------------------------\
<Brace Right/@c5S> - <Brace Left/@c6S> - <Ring Right/@c7S> - <Ring Left/@c8S> - <Necklace/@c3S>\ \ \
<Go Back/@main>\


[@nowusedglow]
<ѫ/@2S>            <Necklace/@3S>            </@9S>\ \
</@10S>            <Ь/@11S>            <ʯ/@12S>\


[@2S]
#ACT
SETITEMSLIGHT 2 1
break
[@3S]
#ACT
SETITEMSLIGHT 3 1
break
[@5S]
#ACT
SETITEMSLIGHT 5 1
break
[@6S]
#ACT
SETITEMSLIGHT 6 1
break
[@7S]
#ACT
SETITEMSLIGHT 7 1
break
[@8S]
#ACT
SETITEMSLIGHT 8 1
break
[@9S]
#ACT
SETITEMSLIGHT 9 1
break
[@10S]
#ACT
SETITEMSLIGHT 10 1
break
[@11S]
#ACT
SETITEMSLIGHT 11 1
break
[@12S]
#ACT
SETITEMSLIGHT 12 1
break















[@b2S]
#ACT
SETITEMSLIGHT 2 2
break
[@b3S]
#ACT
SETITEMSLIGHT 3 2
break
[@b5S]
#ACT
SETITEMSLIGHT 5 2
break
[@b6S]
#ACT
SETITEMSLIGHT 6 2
break
[@b7S]
#ACT
SETITEMSLIGHT 7 2
break
[@b8S]
#ACT
SETITEMSLIGHT 8 2
break
[@b9S]
#ACT
SETITEMSLIGHT 9 2
break
[@b10S]
#ACT
SETITEMSLIGHT 10 2
break
[@b11S]
#ACT
SETITEMSLIGHT 11 2
break
[@b12S]
#ACT
SETITEMSLIGHT 12 2
break








[@c2S]
#ACT
SETITEMSLIGHT 2 3
break
[@c3S]
#ACT
SETITEMSLIGHT 3 3
break
[@c5S]
#ACT
SETITEMSLIGHT 5 3
break
[@c6S]
#ACT
SETITEMSLIGHT 6 3
break
[@c7S]
#ACT
SETITEMSLIGHT 7 3
break
[@c8S]
#ACT
SETITEMSLIGHT 8 3
break
[@c9S]
#ACT
SETITEMSLIGHT 9 3
break
[@c10S]
#ACT
SETITEMSLIGHT 10 3
break
[@c11S]
#ACT
SETITEMSLIGHT 11 3
break
[@c12S]
#ACT
SETITEMSLIGHT 12 3
break





[@customrank]
#ACT
CLOSEBIGDIALOGBOX
#SAY
Please enter your custom User Rank:\
<Click to type/@@InPutString.rank>\


[@InPutString.rank] 
#ACT 
setranklevelname s0 
close





[@movemsg]
#ACT
SENDMOVEMSG 1 221 0 2 Testing
goto @main




[@msgtest]
#ACT
SENDMSG 0 "%s Message 0"
SENDMSG 1 "%s Message 1"
SENDMSG 2 "%s Message 2"
SENDMSG 3 "%s Message 3"
SENDMSG 4 "%s Message 4"
SENDMSG 5 "%s Message 5"
SENDMSG 6 "%s Message 6"
SENDMSG 7 "%s Message 7"
SENDMSG 8 "%s Message 8"
goto @main

[@@sendmsg]
#ACT
SETSENDMSGFLAG
goto @main


[@hair]
Choose hair:\
<Hair 0/@hair0>\
<Hair 1/@hair1>\
<Hair 2/@hair2>\
<Hair 3/@hair3>\
<Hair 4/@hair4>\ \
<go Back/@main>\

[@hair0]
#ACT
HAIRSTYLE 0

goto @main

[@hair1]
#ACT
Hair 1
goto @main


[@hair2]
#ACT
hair 2
goto @main


[@hair3]
#ACT
hair 3
goto @main

[@hair4]
#ACT
hair 4
goto @main


[@bigstorage]
#ACT
CLOSEBIGDIALOGBOX
#SAY
What would you like to store?\ \
<Main/@main>

[@biggetback]
#ACT
CLOSEBIGDIALOGBOX
#SAY
What would you like to get back?\ \
<Previous Page/@getPreviouspage> <Next Page/@getnextpage> \
<main/@main>

[@getPreviouspage]
#ACT
goto @biggetback

[@getnextpage]
#ACT
goto @biggetback